import { Detail } from '@shopstack/cs-admin-lib';
import { useRouter } from "next/router"

const DetailPage = () => {

  const router = useRouter()

  return (
    <Detail
      id={router.query.id as string}
      entity={router.query.entity as string}
      layout={router.query.layout as string}
    />
  )
}

export default DetailPage